package com.lanju.app.service;

import com.lanju.app.message.bean.BaseRequest;
import com.lanju.app.message.bean.BaseResponse;
import com.lanju.entity.User;


public interface AppService<T extends BaseRequest,E extends BaseResponse> {
	
	/**
	 * 获取律师
	 * @param userId
	 * @return
	 */
	public User getUser(String userId);
	
	/**
	 * 处理业务
	 * @param request
	 * @return
	 */
	public E doService(T request, User user) throws Exception;
}
